<template>
    <div class="userInfo">
        <div class="userIcon">
            <img  src="~assets/img/profile/avatar.svg" alt="头像">
        </div>
        <div class="userAccount">
            <button class="login">登录</button><span>/</span>
            <button class="signIn">注册</button>
            <br>
            <button class="phone">暂无绑定手机号</button>
        </div>
        <div class="getUserInfo" v-on:click="getUserInfo">
            <div class="icon"></div>
        </div>
    </div>
</template>

<script>
export default {
    name: "UserInfo",
    methods:{
        getUserInfo(){
            console.log('查看个人信心')
        }
    }
}
</script>

<style scoped>
.userInfo{
    margin-top: 44px;
    display: flex;
    height: 80px;
    background-color: pink;
}
.userIcon{
    width: 25%;
    padding: 5px 0 0 15px;
}
.userIcon img{
    width: 50px;
    height: 50px;
}
.userAccount{
    width: 65%;
    color: #ffffff;
    padding: 10px 10px 0 0;
}
.signIn,.login{
    font-size: 18px;
}
.getUserInfo{
    width: 10%;
}
.phone{
    font-size: 12px;
    padding-left: 18px;
    height: 18px;
    line-height: 18px;
/*    加个背景图片*/
    background: url("~assets/img/profile/phone.svg") no-repeat  -3px 0;
    background-size: contain;
}
.icon{
    margin-top: 20px;
    width: 12px;
    height: 12px;
    border-right: 2px solid white;
    border-top: 2px solid white;
    transform: rotate(45deg);
}
button{
    border: none;
    background: none;
    color: #ffffff;
}

</style>
